package day240520.p1;


public class WrapperTest {
    public static void show1(double double1) {
        System.out.println("包装类可以传给基础数据类型");
    }
    public static void show2(Object object1) {
        System.out.println("基础数据类型可以传到Object");
    }



    public static void main(String[] args) {
    Double double1=101.1;
    int int1=102;
    char char1='c';
    Character Character1= char1;
    Boolean b=true;
    boolean boolean1=b;
        WrapperTest.show1(int1);//Autoboxing
        System.out.println(Character1);//Autoboxing
        WrapperTest.show2(double1);//Unboxing
        System.out.println(boolean1);//Unboxing
    }
}
